<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>好聚点收银系统</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="__TMPL__/public/shop/login/img/png" href="__TMPL__/public/shop/login/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="__TMPL__/public/shop/login/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <link rel="apple-touch-icon-precomposed" href="__TMPL__/public/shop/login/i/app-icon72x72@2x.png">

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="__TMPL__/public/shop/login/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">

  <link rel="stylesheet" href="__TMPL__/public/shop/login/css/amazeui.css">
  <link rel="stylesheet" href="__TMPL__/public/shop/login/css/app.css">
  <style type="text/css">
  	body{
  		background: url(__TMPL__/public/shop/login/img/logobg.jpg) left top no-repeat;
  		height: 100%;
  	}

  </style>
</head>
<body>
	<div class="login_box">
		<form class="am-form am-form-horizontal" action="{:url('user/login/doLogin')}" method="post">
		  	<div class="am-form-group am-form-icon">
			    <i class="am-icon-user am-text-lg"></i>
			    <input type="text"  name="username" class="am-form-field am-radius am-input-lg" placeholder="手机号">
		  	</div>
		  	<div class="am-form-group am-form-icon">
			    <i class="am-icon-lock am-text-lg"></i>
			    <input type="password"  name="password" class="am-form-field am-radius am-input-lg" placeholder="密码">
		  	</div>
		 	<!-- <div class="am-form-group">
			    <div class="am-u-sm-offset-2 am-u-sm-10 am-text-white am-text-right">忘记密码？</div>
		  	</div> -->
		  	<div class="am-form-group">
		    	<div class="am-padding-left-lg am-padding-right-lg am-margin-left am-margin-right">
		      		<button type="submit" class="am-btn am-btn-lg am-btn-block login_btn am-radius">登录</button>
		   	 	</div>
		 	</div>
		</form>
	</div>
<script src="__TMPL__/public/shop/login/js/jquery.min.js"></script>
<script src="__TMPL__/public/shop/login/js/amazeui.min.js"></script>
<script>
	// 窗口resize事件
	function resizeLayout() {
		var wHeight = (window.document.documentElement.clientHeight || window.document.body.clientHeight || window.innerHeight),
			  width = (window.document.documentElement.clientWidth || window.document.body.clientWidth || window.innerWidth),
		login_box_H = $('.login_box')[0].offsetHeight,
		login_box_W = $('.login_box')[0].offsetWidth,
		   offset_t = (wHeight / 2) - login_box_H/2,
		   offset_l = width / 2;
		$('.login_box').offset({top : offset_t, left : offset_l})
	};
	$(window).resize(function() {
		resizeLayout();
	});
	$(document).ready(function($) {
		resizeLayout();
	});
</script>
</body>
</html>